 /*
 * 产品分类列表搜索
 * @Author: LuoQianJun 
 * @Date: 2018-1-26 09:24:29 
 * @Last Modified by: LuoQianJun 
 * @Last Modified time: 2018-01-26 09:32:17
 */
 <template>
    <Form ref="formInline" inline>

        <Form-item label="名称" :label-width="100">
            <Input type="text"  placeholder="请输入分类名称" v-model="formValidate.name">
            </Input>
        </Form-item>

        <Form-item>
            <Button type="primary" @click="confirmSearch">搜索</Button>
        </Form-item>
        
    </Form>
 </template>
 
 <script>
 export default {

     name: 'category-search-form',

     data: function() {	

         return {

             formValidate : {

                name : '',

                priority : ''

            },                  //搜索框的对象参数

         }

     },

     methods: {


          /**
         * 确认搜索
         * @return {undefined}
         */
        confirmSearch(){

            const param = {

                name : this.formValidate.name,

                priority : this.formValidate.priority

            }

            this.$emit('search',param);

        }

     }
 }
 </script>